<?php

namespace app\common\validate;

use think\Validate;

class AcitivityItem extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'name|活动标题'                  => 'require|min:2|max:128',
        'content|活动内容'                  => 'require'
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'saveitem'  => ['name','content'],
        'add'  => [],
        'edit' => [],
    ];
    
}
